import service from "../index";

export const GetDirectory = (params) => {
  return service({
    method: "GET",
    url: `/api/Department/GetDirectory`,
    params,
    
  });
};

export const ImportUserUnfinishedWorkDatas = (data,proj_oid,import_user) => {
  
  return service({
    method: "POST",
    url:`/api/Analysis/ImportUserUnfinishedWorkDatas?proj_oid=${proj_oid}&import_user=${import_user}`,
    data,
  });
};

export const DeleteProjectDatas = (params) => {
  
  return service({
    method: "GET",
    url: "/api/Analysis/DeleteProjectDatas",
    params,
  });
};


export const DeleteMenu = (params) => {
  
  return service({
    method: "GET",
    url: "/api/menus/DeleteMenu",
    params,
  });
};

export const AddOrUpdateMenu = (data) => {
  
  return service({
    method: "POST",
    url: "/api/menus/AddOrUpdateMenu",
    data,
  });
};

export const GetEquipmentCountForState = (params) => {

  return service({
    method: "GET",
    url: "/api/Analysis/GetEquipmentCountForState",
    params,
  });
};


export const GetNewProjiectNoticeState = (params) => {

  return service({
    method: "GET",
    url: "/api/Project/GetNewProjiectNoticeState",
    params,
  });
};



export const ModifyNewProjectNoticeState = (params) => {

  return service({
    method: "GET",
    url: "/api/Project/ModifyNewProjectNoticeState",
    params,
  });
};


export const GetUnfinishedWorkDatas = (params) => {
 
  return service({
    method: "GET",
    url: "/api/Analysis/GetUnfinishedWorkDatasV2",
    params,
  });
};

export const getUserProjects = (params) => {
  
  return service({
    method: "GET",
    url: "/api/project/GetRunningProjectsByUserV2",
    params,
  });
};

export const GetPublishProjectNotices = (params) => {
  
  return service({
    method: "GET",
    url: "/api/project/GetPublishProjectNotices",
    params,
  });
};


export const GetDepartmentFiles = (params) => {

  return service({
    method: "GET",
    url: "/api/Department/GetDepartmentFiles",
    params,
  });
};

export const GetDirectories = (params) => {
  
  return service({
    method: "GET",
    url: `/api/Department/GetDirectories`,
    params,
  });
};


export const getRuleTable = (params) => {
  return service({
    method: "GET",
    url: "/api/project/GetProjectFiles",
    params,
  });



};



export const getGitee = (params) => {
  return service({
    method: "GET",
    url: "/apa",
    
  });



};


export const getGitee2 = (params) => {
  return service({
    method: "GET",
    url: "/apa/IB5ZP4",
    
  });



};
